import request from '@/utils/request'

// 获取授权链接
export function getAuthUrl() {
  return request({
    url: '/woocom/createAccessTokenUrl/',
    method: 'get'
  })
}


// 查询授权店铺列表
export function listShop(query) {
  return request({
    url: '/woocom/shop/list',
    method: 'get',
    params: query
  })
}


// 修改授权店铺
export function updateShop(data) {
  return request({
    url: '/woocom/shop',
    method: 'put',
    data: data
  })
}

